import 'package:safetymonitor/generated/json/base/json_convert_content.dart';
import 'package:safetymonitor/app/data/entities/application/get_distribute_return_record_list_entity.dart';

GetDistributeReturnRecordListEntity $GetDistributeReturnRecordListEntityFromJson(Map<String, dynamic> json) {
  final GetDistributeReturnRecordListEntity getDistributeReturnRecordListEntity = GetDistributeReturnRecordListEntity();
  final List<GetDistributeReturnRecordListDistributeList>? distributeList = (json['distributeList'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<GetDistributeReturnRecordListDistributeList>(e) as GetDistributeReturnRecordListDistributeList).toList();
  if (distributeList != null) {
    getDistributeReturnRecordListEntity.distributeList = distributeList;
  }
  final List<GetDistributeReturnRecordListReturnList>? returnList = (json['returnList'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<GetDistributeReturnRecordListReturnList>(e) as GetDistributeReturnRecordListReturnList).toList();
  if (returnList != null) {
    getDistributeReturnRecordListEntity.returnList = returnList;
  }
  final int? dispatchPersonId = jsonConvert.convert<int>(json['dispatchPersonId']);
  if (dispatchPersonId != null) {
    getDistributeReturnRecordListEntity.dispatchPersonId = dispatchPersonId;
  }
  final int? disposeTime = jsonConvert.convert<int>(json['disposeTime']);
  if (disposeTime != null) {
    getDistributeReturnRecordListEntity.disposeTime = disposeTime;
  }
  final String? dispatchPersonName = jsonConvert.convert<String>(json['dispatchPersonName']);
  if (dispatchPersonName != null) {
    getDistributeReturnRecordListEntity.dispatchPersonName = dispatchPersonName;
  }
  final String? dispatchPersonDeptName = jsonConvert.convert<String>(json['dispatchPersonDeptName']);
  if (dispatchPersonDeptName != null) {
    getDistributeReturnRecordListEntity.dispatchPersonDeptName = dispatchPersonDeptName;
  }
  final String? undertakePersonName = jsonConvert.convert<String>(json['undertakePersonName']);
  if (undertakePersonName != null) {
    getDistributeReturnRecordListEntity.undertakePersonName = undertakePersonName;
  }
  final String? undertakeTime = jsonConvert.convert<String>(json['undertakeTime']);
  if (undertakeTime != null) {
    getDistributeReturnRecordListEntity.undertakeTime = undertakeTime;
  }
  return getDistributeReturnRecordListEntity;
}

Map<String, dynamic> $GetDistributeReturnRecordListEntityToJson(GetDistributeReturnRecordListEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['distributeList'] = entity.distributeList.map((v) => v.toJson()).toList();
  data['returnList'] = entity.returnList.map((v) => v.toJson()).toList();
  data['dispatchPersonId'] = entity.dispatchPersonId;
  data['disposeTime'] = entity.disposeTime;
  data['dispatchPersonName'] = entity.dispatchPersonName;
  data['dispatchPersonDeptName'] = entity.dispatchPersonDeptName;
  data['undertakePersonName'] = entity.undertakePersonName;
  data['undertakeTime'] = entity.undertakeTime;
  return data;
}

extension GetDistributeReturnRecordListEntityExtension on GetDistributeReturnRecordListEntity {
  GetDistributeReturnRecordListEntity copyWith({
    List<GetDistributeReturnRecordListDistributeList>? distributeList,
    List<GetDistributeReturnRecordListReturnList>? returnList,
    int? dispatchPersonId,
    int? disposeTime,
    String? dispatchPersonName,
    String? dispatchPersonDeptName,
    String? undertakePersonName,
    String? undertakeTime,
  }) {
    return GetDistributeReturnRecordListEntity()
      ..distributeList = distributeList ?? this.distributeList
      ..returnList = returnList ?? this.returnList
      ..dispatchPersonId = dispatchPersonId ?? this.dispatchPersonId
      ..disposeTime = disposeTime ?? this.disposeTime
      ..dispatchPersonName = dispatchPersonName ?? this.dispatchPersonName
      ..dispatchPersonDeptName = dispatchPersonDeptName ?? this.dispatchPersonDeptName
      ..undertakePersonName = undertakePersonName ?? this.undertakePersonName
      ..undertakeTime = undertakeTime ?? this.undertakeTime;
  }
}

GetDistributeReturnRecordListDistributeList $GetDistributeReturnRecordListDistributeListFromJson(Map<String, dynamic> json) {
  final GetDistributeReturnRecordListDistributeList getDistributeReturnRecordListDistributeList = GetDistributeReturnRecordListDistributeList();
  final List<GetDistributeReturnRecordListDistributeListDistributeList>? distributeList = (json['distributeList'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<GetDistributeReturnRecordListDistributeListDistributeList>(e) as GetDistributeReturnRecordListDistributeListDistributeList).toList();
  if (distributeList != null) {
    getDistributeReturnRecordListDistributeList.distributeList = distributeList;
  }
  final GetDistributeReturnRecordListDistributeListAlarmDisposalRecordDO? alarmDisposalRecordDO = jsonConvert.convert<GetDistributeReturnRecordListDistributeListAlarmDisposalRecordDO>(
      json['alarmDisposalRecordDO']);
  if (alarmDisposalRecordDO != null) {
    getDistributeReturnRecordListDistributeList.alarmDisposalRecordDO = alarmDisposalRecordDO;
  }
  return getDistributeReturnRecordListDistributeList;
}

Map<String, dynamic> $GetDistributeReturnRecordListDistributeListToJson(GetDistributeReturnRecordListDistributeList entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['distributeList'] = entity.distributeList.map((v) => v.toJson()).toList();
  data['alarmDisposalRecordDO'] = entity.alarmDisposalRecordDO.toJson();
  return data;
}

extension GetDistributeReturnRecordListDistributeListExtension on GetDistributeReturnRecordListDistributeList {
  GetDistributeReturnRecordListDistributeList copyWith({
    List<GetDistributeReturnRecordListDistributeListDistributeList>? distributeList,
    GetDistributeReturnRecordListDistributeListAlarmDisposalRecordDO? alarmDisposalRecordDO,
  }) {
    return GetDistributeReturnRecordListDistributeList()
      ..distributeList = distributeList ?? this.distributeList
      ..alarmDisposalRecordDO = alarmDisposalRecordDO ?? this.alarmDisposalRecordDO;
  }
}

GetDistributeReturnRecordListDistributeListDistributeList $GetDistributeReturnRecordListDistributeListDistributeListFromJson(Map<String, dynamic> json) {
  final GetDistributeReturnRecordListDistributeListDistributeList getDistributeReturnRecordListDistributeListDistributeList = GetDistributeReturnRecordListDistributeListDistributeList();
  final int? createTime = jsonConvert.convert<int>(json['createTime']);
  if (createTime != null) {
    getDistributeReturnRecordListDistributeListDistributeList.createTime = createTime;
  }
  final int? updateTime = jsonConvert.convert<int>(json['updateTime']);
  if (updateTime != null) {
    getDistributeReturnRecordListDistributeListDistributeList.updateTime = updateTime;
  }
  final String? creator = jsonConvert.convert<String>(json['creator']);
  if (creator != null) {
    getDistributeReturnRecordListDistributeListDistributeList.creator = creator;
  }
  final String? updater = jsonConvert.convert<String>(json['updater']);
  if (updater != null) {
    getDistributeReturnRecordListDistributeListDistributeList.updater = updater;
  }
  final bool? deleted = jsonConvert.convert<bool>(json['deleted']);
  if (deleted != null) {
    getDistributeReturnRecordListDistributeListDistributeList.deleted = deleted;
  }
  final int? id = jsonConvert.convert<int>(json['id']);
  if (id != null) {
    getDistributeReturnRecordListDistributeListDistributeList.id = id;
  }
  final int? companyId = jsonConvert.convert<int>(json['companyId']);
  if (companyId != null) {
    getDistributeReturnRecordListDistributeListDistributeList.companyId = companyId;
  }
  final int? alarmId = jsonConvert.convert<int>(json['alarmId']);
  if (alarmId != null) {
    getDistributeReturnRecordListDistributeListDistributeList.alarmId = alarmId;
  }
  final String? alarmDesc = jsonConvert.convert<String>(json['alarmDesc']);
  if (alarmDesc != null) {
    getDistributeReturnRecordListDistributeListDistributeList.alarmDesc = alarmDesc;
  }
  final int? actionTime = jsonConvert.convert<int>(json['actionTime']);
  if (actionTime != null) {
    getDistributeReturnRecordListDistributeListDistributeList.actionTime = actionTime;
  }
  final int? actionType = jsonConvert.convert<int>(json['actionType']);
  if (actionType != null) {
    getDistributeReturnRecordListDistributeListDistributeList.actionType = actionType;
  }
  final int? actionUserId = jsonConvert.convert<int>(json['actionUserId']);
  if (actionUserId != null) {
    getDistributeReturnRecordListDistributeListDistributeList.actionUserId = actionUserId;
  }
  final int? disposalId = jsonConvert.convert<int>(json['disposalId']);
  if (disposalId != null) {
    getDistributeReturnRecordListDistributeListDistributeList.disposalId = disposalId;
  }
  return getDistributeReturnRecordListDistributeListDistributeList;
}

Map<String, dynamic> $GetDistributeReturnRecordListDistributeListDistributeListToJson(GetDistributeReturnRecordListDistributeListDistributeList entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['createTime'] = entity.createTime;
  data['updateTime'] = entity.updateTime;
  data['creator'] = entity.creator;
  data['updater'] = entity.updater;
  data['deleted'] = entity.deleted;
  data['id'] = entity.id;
  data['companyId'] = entity.companyId;
  data['alarmId'] = entity.alarmId;
  data['alarmDesc'] = entity.alarmDesc;
  data['actionTime'] = entity.actionTime;
  data['actionType'] = entity.actionType;
  data['actionUserId'] = entity.actionUserId;
  data['disposalId'] = entity.disposalId;
  return data;
}

extension GetDistributeReturnRecordListDistributeListDistributeListExtension on GetDistributeReturnRecordListDistributeListDistributeList {
  GetDistributeReturnRecordListDistributeListDistributeList copyWith({
    int? createTime,
    int? updateTime,
    String? creator,
    String? updater,
    bool? deleted,
    int? id,
    int? companyId,
    int? alarmId,
    String? alarmDesc,
    int? actionTime,
    int? actionType,
    int? actionUserId,
    int? disposalId,
  }) {
    return GetDistributeReturnRecordListDistributeListDistributeList()
      ..createTime = createTime ?? this.createTime
      ..updateTime = updateTime ?? this.updateTime
      ..creator = creator ?? this.creator
      ..updater = updater ?? this.updater
      ..deleted = deleted ?? this.deleted
      ..id = id ?? this.id
      ..companyId = companyId ?? this.companyId
      ..alarmId = alarmId ?? this.alarmId
      ..alarmDesc = alarmDesc ?? this.alarmDesc
      ..actionTime = actionTime ?? this.actionTime
      ..actionType = actionType ?? this.actionType
      ..actionUserId = actionUserId ?? this.actionUserId
      ..disposalId = disposalId ?? this.disposalId;
  }
}

GetDistributeReturnRecordListDistributeListAlarmDisposalRecordDO $GetDistributeReturnRecordListDistributeListAlarmDisposalRecordDOFromJson(Map<String, dynamic> json) {
  final GetDistributeReturnRecordListDistributeListAlarmDisposalRecordDO getDistributeReturnRecordListDistributeListAlarmDisposalRecordDO = GetDistributeReturnRecordListDistributeListAlarmDisposalRecordDO();
  final int? createTime = jsonConvert.convert<int>(json['createTime']);
  if (createTime != null) {
    getDistributeReturnRecordListDistributeListAlarmDisposalRecordDO.createTime = createTime;
  }
  final int? updateTime = jsonConvert.convert<int>(json['updateTime']);
  if (updateTime != null) {
    getDistributeReturnRecordListDistributeListAlarmDisposalRecordDO.updateTime = updateTime;
  }
  final String? creator = jsonConvert.convert<String>(json['creator']);
  if (creator != null) {
    getDistributeReturnRecordListDistributeListAlarmDisposalRecordDO.creator = creator;
  }
  final String? updater = jsonConvert.convert<String>(json['updater']);
  if (updater != null) {
    getDistributeReturnRecordListDistributeListAlarmDisposalRecordDO.updater = updater;
  }
  final bool? deleted = jsonConvert.convert<bool>(json['deleted']);
  if (deleted != null) {
    getDistributeReturnRecordListDistributeListAlarmDisposalRecordDO.deleted = deleted;
  }
  final int? id = jsonConvert.convert<int>(json['id']);
  if (id != null) {
    getDistributeReturnRecordListDistributeListAlarmDisposalRecordDO.id = id;
  }
  final int? alarmActionId = jsonConvert.convert<int>(json['alarmActionId']);
  if (alarmActionId != null) {
    getDistributeReturnRecordListDistributeListAlarmDisposalRecordDO.alarmActionId = alarmActionId;
  }
  final String? reasonType = jsonConvert.convert<String>(json['reasonType']);
  if (reasonType != null) {
    getDistributeReturnRecordListDistributeListAlarmDisposalRecordDO.reasonType = reasonType;
  }
  final String? reasonAnalysis = jsonConvert.convert<String>(json['reasonAnalysis']);
  if (reasonAnalysis != null) {
    getDistributeReturnRecordListDistributeListAlarmDisposalRecordDO.reasonAnalysis = reasonAnalysis;
  }
  final String? sceneDisposalPersonName = jsonConvert.convert<String>(json['sceneDisposalPersonName']);
  if (sceneDisposalPersonName != null) {
    getDistributeReturnRecordListDistributeListAlarmDisposalRecordDO.sceneDisposalPersonName = sceneDisposalPersonName;
  }
  final String? undertakePersonName = jsonConvert.convert<String>(json['undertakePersonName']);
  if (undertakePersonName != null) {
    getDistributeReturnRecordListDistributeListAlarmDisposalRecordDO.undertakePersonName = undertakePersonName;
  }
  final String? ascriptionDeptName = jsonConvert.convert<String>(json['ascriptionDeptName']);
  if (ascriptionDeptName != null) {
    getDistributeReturnRecordListDistributeListAlarmDisposalRecordDO.ascriptionDeptName = ascriptionDeptName;
  }
  final int? sceneDisposalPersonId = jsonConvert.convert<int>(json['sceneDisposalPersonId']);
  if (sceneDisposalPersonId != null) {
    getDistributeReturnRecordListDistributeListAlarmDisposalRecordDO.sceneDisposalPersonId = sceneDisposalPersonId;
  }
  final int? ascriptionDeptId = jsonConvert.convert<int>(json['ascriptionDeptId']);
  if (ascriptionDeptId != null) {
    getDistributeReturnRecordListDistributeListAlarmDisposalRecordDO.ascriptionDeptId = ascriptionDeptId;
  }
  final int? sceneDisposalTime = jsonConvert.convert<int>(json['sceneDisposalTime']);
  if (sceneDisposalTime != null) {
    getDistributeReturnRecordListDistributeListAlarmDisposalRecordDO.sceneDisposalTime = sceneDisposalTime;
  }
  final int? disposeTime = jsonConvert.convert<int>(json['disposeTime']);
  if (disposeTime != null) {
    getDistributeReturnRecordListDistributeListAlarmDisposalRecordDO.disposeTime = disposeTime;
  }
  final int? undertakePersonId = jsonConvert.convert<int>(json['undertakePersonId']);
  if (undertakePersonId != null) {
    getDistributeReturnRecordListDistributeListAlarmDisposalRecordDO.undertakePersonId = undertakePersonId;
  }
  final String? disposalMeasures = jsonConvert.convert<String>(json['disposalMeasures']);
  if (disposalMeasures != null) {
    getDistributeReturnRecordListDistributeListAlarmDisposalRecordDO.disposalMeasures = disposalMeasures;
  }
  final String? disposalMeasuresAnnex = jsonConvert.convert<String>(json['disposalMeasuresAnnex']);
  if (disposalMeasuresAnnex != null) {
    getDistributeReturnRecordListDistributeListAlarmDisposalRecordDO.disposalMeasuresAnnex = disposalMeasuresAnnex;
  }
  return getDistributeReturnRecordListDistributeListAlarmDisposalRecordDO;
}

Map<String, dynamic> $GetDistributeReturnRecordListDistributeListAlarmDisposalRecordDOToJson(GetDistributeReturnRecordListDistributeListAlarmDisposalRecordDO entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['createTime'] = entity.createTime;
  data['updateTime'] = entity.updateTime;
  data['creator'] = entity.creator;
  data['updater'] = entity.updater;
  data['deleted'] = entity.deleted;
  data['id'] = entity.id;
  data['alarmActionId'] = entity.alarmActionId;
  data['reasonType'] = entity.reasonType;
  data['reasonAnalysis'] = entity.reasonAnalysis;
  data['sceneDisposalPersonName'] = entity.sceneDisposalPersonName;
  data['undertakePersonName'] = entity.undertakePersonName;
  data['ascriptionDeptName'] = entity.ascriptionDeptName;
  data['sceneDisposalPersonId'] = entity.sceneDisposalPersonId;
  data['ascriptionDeptId'] = entity.ascriptionDeptId;
  data['sceneDisposalTime'] = entity.sceneDisposalTime;
  data['disposeTime'] = entity.disposeTime;
  data['undertakePersonId'] = entity.undertakePersonId;
  data['disposalMeasures'] = entity.disposalMeasures;
  data['disposalMeasuresAnnex'] = entity.disposalMeasuresAnnex;
  return data;
}

extension GetDistributeReturnRecordListDistributeListAlarmDisposalRecordDOExtension on GetDistributeReturnRecordListDistributeListAlarmDisposalRecordDO {
  GetDistributeReturnRecordListDistributeListAlarmDisposalRecordDO copyWith({
    int? createTime,
    int? updateTime,
    String? creator,
    String? updater,
    bool? deleted,
    int? id,
    int? alarmActionId,
    String? reasonType,
    String? reasonAnalysis,
    String? sceneDisposalPersonName,
    String? undertakePersonName,
    String? ascriptionDeptName,
    int? sceneDisposalPersonId,
    int? ascriptionDeptId,
    int? sceneDisposalTime,
    int? disposeTime,
    int? undertakePersonId,
    String? disposalMeasures,
    String? disposalMeasuresAnnex,
  }) {
    return GetDistributeReturnRecordListDistributeListAlarmDisposalRecordDO()
      ..createTime = createTime ?? this.createTime
      ..updateTime = updateTime ?? this.updateTime
      ..creator = creator ?? this.creator
      ..updater = updater ?? this.updater
      ..deleted = deleted ?? this.deleted
      ..id = id ?? this.id
      ..alarmActionId = alarmActionId ?? this.alarmActionId
      ..reasonType = reasonType ?? this.reasonType
      ..reasonAnalysis = reasonAnalysis ?? this.reasonAnalysis
      ..sceneDisposalPersonName = sceneDisposalPersonName ?? this.sceneDisposalPersonName
      ..undertakePersonName = undertakePersonName ?? this.undertakePersonName
      ..ascriptionDeptName = ascriptionDeptName ?? this.ascriptionDeptName
      ..sceneDisposalPersonId = sceneDisposalPersonId ?? this.sceneDisposalPersonId
      ..ascriptionDeptId = ascriptionDeptId ?? this.ascriptionDeptId
      ..sceneDisposalTime = sceneDisposalTime ?? this.sceneDisposalTime
      ..disposeTime = disposeTime ?? this.disposeTime
      ..undertakePersonId = undertakePersonId ?? this.undertakePersonId
      ..disposalMeasures = disposalMeasures ?? this.disposalMeasures
      ..disposalMeasuresAnnex = disposalMeasuresAnnex ?? this.disposalMeasuresAnnex;
  }
}

GetDistributeReturnRecordListReturnList $GetDistributeReturnRecordListReturnListFromJson(Map<String, dynamic> json) {
  final GetDistributeReturnRecordListReturnList getDistributeReturnRecordListReturnList = GetDistributeReturnRecordListReturnList();
  final int? createTime = jsonConvert.convert<int>(json['createTime']);
  if (createTime != null) {
    getDistributeReturnRecordListReturnList.createTime = createTime;
  }
  final int? updateTime = jsonConvert.convert<int>(json['updateTime']);
  if (updateTime != null) {
    getDistributeReturnRecordListReturnList.updateTime = updateTime;
  }
  final String? creator = jsonConvert.convert<String>(json['creator']);
  if (creator != null) {
    getDistributeReturnRecordListReturnList.creator = creator;
  }
  final String? updater = jsonConvert.convert<String>(json['updater']);
  if (updater != null) {
    getDistributeReturnRecordListReturnList.updater = updater;
  }
  final String? actionUserName = jsonConvert.convert<String>(json['actionUserName']);
  if (actionUserName != null) {
    getDistributeReturnRecordListReturnList.actionUserName = actionUserName;
  }
  final bool? deleted = jsonConvert.convert<bool>(json['deleted']);
  if (deleted != null) {
    getDistributeReturnRecordListReturnList.deleted = deleted;
  }
  final int? id = jsonConvert.convert<int>(json['id']);
  if (id != null) {
    getDistributeReturnRecordListReturnList.id = id;
  }
  final int? companyId = jsonConvert.convert<int>(json['companyId']);
  if (companyId != null) {
    getDistributeReturnRecordListReturnList.companyId = companyId;
  }
  final int? alarmId = jsonConvert.convert<int>(json['alarmId']);
  if (alarmId != null) {
    getDistributeReturnRecordListReturnList.alarmId = alarmId;
  }
  final dynamic alarmDesc = json['alarmDesc'];
  if (alarmDesc != null) {
    getDistributeReturnRecordListReturnList.alarmDesc = alarmDesc;
  }
  final int? actionTime = jsonConvert.convert<int>(json['actionTime']);
  if (actionTime != null) {
    getDistributeReturnRecordListReturnList.actionTime = actionTime;
  }
  final int? actionType = jsonConvert.convert<int>(json['actionType']);
  if (actionType != null) {
    getDistributeReturnRecordListReturnList.actionType = actionType;
  }
  final int? actionUserId = jsonConvert.convert<int>(json['actionUserId']);
  if (actionUserId != null) {
    getDistributeReturnRecordListReturnList.actionUserId = actionUserId;
  }
  final dynamic disposalId = json['disposalId'];
  if (disposalId != null) {
    getDistributeReturnRecordListReturnList.disposalId = disposalId;
  }
  return getDistributeReturnRecordListReturnList;
}

Map<String, dynamic> $GetDistributeReturnRecordListReturnListToJson(GetDistributeReturnRecordListReturnList entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['createTime'] = entity.createTime;
  data['updateTime'] = entity.updateTime;
  data['creator'] = entity.creator;
  data['updater'] = entity.updater;
  data['actionUserName'] = entity.actionUserName;
  data['deleted'] = entity.deleted;
  data['id'] = entity.id;
  data['companyId'] = entity.companyId;
  data['alarmId'] = entity.alarmId;
  data['alarmDesc'] = entity.alarmDesc;
  data['actionTime'] = entity.actionTime;
  data['actionType'] = entity.actionType;
  data['actionUserId'] = entity.actionUserId;
  data['disposalId'] = entity.disposalId;
  return data;
}

extension GetDistributeReturnRecordListReturnListExtension on GetDistributeReturnRecordListReturnList {
  GetDistributeReturnRecordListReturnList copyWith({
    int? createTime,
    int? updateTime,
    String? creator,
    String? updater,
    String? actionUserName,
    bool? deleted,
    int? id,
    int? companyId,
    int? alarmId,
    dynamic alarmDesc,
    int? actionTime,
    int? actionType,
    int? actionUserId,
    dynamic disposalId,
  }) {
    return GetDistributeReturnRecordListReturnList()
      ..createTime = createTime ?? this.createTime
      ..updateTime = updateTime ?? this.updateTime
      ..creator = creator ?? this.creator
      ..updater = updater ?? this.updater
      ..actionUserName = actionUserName ?? this.actionUserName
      ..deleted = deleted ?? this.deleted
      ..id = id ?? this.id
      ..companyId = companyId ?? this.companyId
      ..alarmId = alarmId ?? this.alarmId
      ..alarmDesc = alarmDesc ?? this.alarmDesc
      ..actionTime = actionTime ?? this.actionTime
      ..actionType = actionType ?? this.actionType
      ..actionUserId = actionUserId ?? this.actionUserId
      ..disposalId = disposalId ?? this.disposalId;
  }
}